/*
 *
 *    Copyright (c) 2022 Project CHIP Authors
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

// THIS FILE IS GENERATED BY ZAP
// This file is generated from clusters-Events.h.zapt

#pragma once

#include <app/EventLoggingTypes.h>
#include <app/data-model/DecodableList.h>
#include <app/data-model/List.h>
#include <app/data-model/Nullable.h>
#include <lib/core/DataModelTypes.h>
#include <lib/core/TLV.h>
#include <lib/support/BitMask.h>

#include <clusters/shared/Enums.h>
#include <clusters/shared/Structs.h>

#include <clusters/PumpConfigurationAndControl/ClusterId.h>
#include <clusters/PumpConfigurationAndControl/Enums.h>
#include <clusters/PumpConfigurationAndControl/EventIds.h>
#include <clusters/PumpConfigurationAndControl/Structs.h>

#include <cstdint>

namespace chip
{
namespace app
{
	namespace Clusters
	{
		namespace PumpConfigurationAndControl
		{
			namespace Events
			{
				namespace SupplyVoltageLow
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SupplyVoltageLow::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SupplyVoltageLow::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace SupplyVoltageLow
				namespace SupplyVoltageHigh
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SupplyVoltageHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SupplyVoltageHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace SupplyVoltageHigh
				namespace PowerMissingPhase
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::PowerMissingPhase::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::PowerMissingPhase::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace PowerMissingPhase
				namespace SystemPressureLow
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SystemPressureLow::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SystemPressureLow::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace SystemPressureLow
				namespace SystemPressureHigh
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SystemPressureHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SystemPressureHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace SystemPressureHigh
				namespace DryRunning
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::DryRunning::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::DryRunning::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace DryRunning
				namespace MotorTemperatureHigh
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::MotorTemperatureHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::MotorTemperatureHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace MotorTemperatureHigh
				namespace PumpMotorFatalFailure
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::PumpMotorFatalFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::PumpMotorFatalFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace PumpMotorFatalFailure
				namespace ElectronicTemperatureHigh
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::ElectronicTemperatureHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::ElectronicTemperatureHigh::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace ElectronicTemperatureHigh
				namespace PumpBlocked
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::PumpBlocked::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::PumpBlocked::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace PumpBlocked
				namespace SensorFailure
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SensorFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::SensorFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace SensorFailure
				namespace ElectronicNonFatalFailure
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::ElectronicNonFatalFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::ElectronicNonFatalFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace ElectronicNonFatalFailure
				namespace ElectronicFatalFailure
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Critical;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::ElectronicFatalFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::ElectronicFatalFailure::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace ElectronicFatalFailure
				namespace GeneralFault
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::GeneralFault::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::GeneralFault::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace GeneralFault
				namespace Leakage
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::Leakage::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId() { return Events::Leakage::Id; }
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace Leakage
				namespace AirDetection
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::AirDetection::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::AirDetection::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace AirDetection
				namespace TurbineOperation
				{
					static constexpr PriorityLevel kPriorityLevel = PriorityLevel::Info;

					enum class Fields : uint8_t {};

					struct Type {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::TurbineOperation::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}
						static constexpr bool kIsFabricScoped = false;

						CHIP_ERROR Encode(TLV::TLVWriter &aWriter, TLV::Tag aTag) const;
					};

					struct DecodableType {
					public:
						static constexpr PriorityLevel GetPriorityLevel()
						{
							return kPriorityLevel;
						}
						static constexpr EventId GetEventId()
						{
							return Events::TurbineOperation::Id;
						}
						static constexpr ClusterId GetClusterId()
						{
							return Clusters::PumpConfigurationAndControl::Id;
						}

						CHIP_ERROR Decode(TLV::TLVReader &reader);
					};
				} // namespace TurbineOperation
			} // namespace Events
		} // namespace PumpConfigurationAndControl
	} // namespace Clusters
} // namespace app
} // namespace chip
